<div class="bjui-pageHeader">
    <div class="toolBar">
        <div class="btn-group" role="group" aria-label="操作栏">
            <a type="button" class="btn btn-success" href="${wwwroot}/admin/subject/add" data-toggle="navtab" data-id="form"><i class="fa fa-plus"></i>新增</a>
            <a type="button" class="btn btn-danger" href="${wwwroot}/admin/subject/delete?ids={#bjui-selected}" data-toggle="doajax" data-confirm-msg="确定要删除选中项吗？" data-id="form" data-mask="true"><i class="fa fa-trash-o"></i>删除选中行</a>
        </div>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" action="${wwwroot}/admin/subject/listbymanager" method="post">
        <input type="hidden" name="pageSize" value="">
        <input type="hidden" name="pageCurrent" value="">
        <input type="hidden" name="orderField" value="">
        <input type="hidden" name="orderDirection" value="">
        <div class="bjui-searchBar">
            <label>提交记录号：</label><input type="text" id="subjectNo" name="subjectNo" value="${(subject.subjectNo)!}"  class="form-control" size="10">&nbsp;
            <label>提交原因：</label><input type="text" id="reason" name="reason" value="${(subject.reason)!}"  class="form-control" size="10">&nbsp;
        <#--<label>更新日志：</label><input type="text" id="updateLog" name="updateLog" value="${(subject.updateLog)!}"  class="form-control" size="10">&nbsp;-->
            <label>状态：</label><input type="text" id="status" name="status" value="${(subject.status)!}"  class="form-control" size="10">&nbsp;
        <#--<label>说明：</label><input type="text" id="note" name="note" value="${(subject.note)!}"  class="form-control" size="10">&nbsp;-->
            <button type="submit" class="btn btn-primary" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="50">No.</th>
            <th data-order-direction="" data-order-field="subjectNo">提交记录号</th>
            <th data-order-direction="" data-order-field="reason">提交原因</th>
            <th data-order-direction="" data-order-field="status">状态</th>
        <#--<th data-order-direction="" data-order-field="note">说明</th>-->
            <th data-order-direction="" data-order-field="createrName">创建人名</th>
            <th data-order-direction="" data-order-field="createDate">创建时间</th>
            <th width="220">操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pageCtx.rows as row>
        <tr data-id="${(row.id)!}">
            <td>${(row_index+1)!}</td>
            <td title="${(row.subjectNo)!}">${(row.subjectNo)!}</td>
            <td title="${(row.reason)!}"><@p.subStr content=(row.reason)! length=20/></td>
            <td title="${(row.status.label)!}">${(row.status.label)!}</td>
        <#--<td title="${(row.note)!}">${(row.note)!}</td>-->
            <td title="${(row.createrName)!}">${(row.createrName)!}</td>
            <td title="${(row.createDate?string('yyyy-MM-dd HH:mm:ss'))!}">${(row.createDate?string('yyyy-MM-dd HH:mm:ss'))!}</td>
            <td>
                <a href="${wwwroot}/admin//job/createbysubject?subjectId=${(row.id)!}" class="btn btn-green" data-toggle="navtab" data-id="form" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-title="创建作业">创建作业</a>
                <a href="${wwwroot}/admin/subject/edit?id=${(row.id)!}" class="btn btn-blue" data-toggle="navtab" data-id="form" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-title="编辑">编辑</a>
                <a href="${wwwroot}/admin/subject/delete?ids=${(row.id)!}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                <a href="${wwwroot}/admin/subject/editStatus?sid=${(row.id)!}<#--&status=${row.status!}-->" class="btn btn-blue" data-toggle="doajax"  data-id="form" data-confirm-msg="确定要修改该作业状态吗？">已发布</a>
            </td>
        </tr>
        </#list>
        </tbody>
    </table>
</div>
<@p.pagination pageCtx=pageCtx pageParam=pageParam/>